keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions about A400/800/1200 Analog Interface Card

Trouble with trixbox 2.2

17 years 2 weeks ago #272 by miaolin
it is due to the core source have some issue.

please use

yum install kernel kernel-devel

to update your kernel, then reboot and continue to make your drivers.

another alter way is modify the source code, change the code that define the lock variable.
17 years 1 week ago #273 by superniko
Hello, thanks for your answer. I executed "yum install kernel kernel-devel" and it said following:

[root@asterisk1 zaptel-1.2.16]# yum install kernel kernel-devel
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Excluding Packages from CentOS-4 - Updates
Finished
Excluding Packages from CentOS-4 - Base
Finished
Excluding Packages from CentOS-4 - Addons
Finished
Excluding Packages from CentOS-4 - Extras
Finished
Parsing package install arguments
No Match for argument: kernel
Nothing to do


when i try to complile zaptel drivers 1.2 and 1.4 current it has the same errors than before... strange not?
help me please... im stuck
thanks[/quote]
17 years 1 week ago #274 by superniko
Hello, thanks for your answer. I executed "yum install kernel kernel-devel" and it said following:

[root@asterisk1 zaptel-1.2.16]# yum install kernel kernel-devel
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Excluding Packages from CentOS-4 - Updates
Finished
Excluding Packages from CentOS-4 - Base
Finished
Excluding Packages from CentOS-4 - Addons
Finished
Excluding Packages from CentOS-4 - Extras
Finished
Parsing package install arguments
No Match for argument: kernel
Nothing to do


when i try to complile zaptel drivers 1.2 and 1.4 current it has the same errors than before... strange not?
help me please... im stuck
thanks[/quote]
17 years 1 week ago #276 by miaolin
well, check the line#385 in zaptel_base.c, you can see following :

#ifdef DEFINE_RWLOCK
static DEFINE_RWLOCK(zone_lock);
static DEFINE_RWLOCK(chan_lock);
#else
static rwlock_t zone_lock = RW_LOCK_UNLOCKED;
static rwlock_t chan_lock = RW_LOCK_UNLOCKED;
#endif

modify these line as below

/*#ifdef DEFINE_RWLOCK
static DEFINE_RWLOCK(zone_lock);
static DEFINE_RWLOCK(chan_lock);
#else*/
static rwlock_t zone_lock = RW_LOCK_UNLOCKED;
static rwlock_t chan_lock = RW_LOCK_UNLOCKED;
/*#endif*/



similar in zaptel 1.4.1 line#134

modify

#ifdef DEFINE_RWLOCK
static DEFINE_RWLOCK(torisa);
#else
static rwlock_t torisa = RW_LOCK_UNLOCKED;
#endif

to

//#ifdef DEFINE_RWLOCK
//static DEFINE_RWLOCK(torisa);
//#else
static rwlock_t torisa = RW_LOCK_UNLOCKED;
//#endif


seems that linux core source not match the version correctly
16 years 11 months ago #288 by Jeff
I'm having the same troubles with TrixBox 2.2. The above suggestions helped, but for some reason I don't have a zaptel_base.c file - I found the offending code in files called zaptel.c and torisa.c at the same line numbers given.

Now make process goes much further than it did, but I'm getting an error:

"No rule to make target '/usr/src/zaptel/\.c'
16 years 11 months ago #289 by Jeff
I found the zaptel_base.c file after downloading the newest driver package from Digium - I had downloaded it from a link in another forum before and it must have been the wrong version. I'm still not getting anywhere though...

Just to see if it would help, I deleted everything in the /usr/src/zaptel directory and replaced with the current driver "zaptel-1.4-current". I tried to edit the files as the install guide says to do, but the Makefile has obviously been completly changed with the new version. I added "opvxa1200.c" to the file wherever I saw drivers for the Digium boards listed. I also searched and changed the above code wherever I could find it. Now I'm really lost and ready to start over again with a fresh install of TrixBox.

My question is: is there any chance of getting a driver package that is complete for this board and TrixBox 2.2? If not that, then at least a new install guide that is complete for Trixbox 2.2? It seems like there's small tidbits of necessary information for the installation of this board that are scattered across multiple forums and other web sites.
Time to create page: 0.041 seconds
Powered by Kunena Forum